<table width="100%" cellpadding="0" cellspacing="0" border="0">
    <thead>
        <tr>
            {if $arrResult && isset($smarty.session.report) && ( (($smarty.session.report&1<<3)>0) || (($smarty.session.report&1<<4)>0) )}
                <th class="firstChild" width="30"><input type="checkbox" name="pcheckall" id="pcheckall" onclick="javascript:checkAll(this.form,'preportid[]',this.checked);"/></th>
                <th width="100">Loại</th>
            {else}
                <th class="firstChild" width="100">Loại</th>
            {/if}                                       
            <th width="150">Thành viên</th>
            <th>Tóm lược nội dung</th>
            <th width="220">Báo vi phạm</th>
          	<th width="70">Tình trạng</th>
            <th width="80">Thời gian</th>
            {if $arrResult && isset($smarty.session.report)}
                <th width="20">&nbsp;</th>
            {/if}
        </tr>
    </thead>
    <tbody>
        {if $arrResult}
            {foreach item=item from=$arrResult}
                <tr class="{cycle values="odd,even"}">
                    {if isset($smarty.session.report) && ((($smarty.session.report&1<<3)>0) || (($smarty.session.report&1<<4)>0))}
                        <td class="firstChild" align="center">
                        	<input type="hidden" name="puserid{$item.reportid}" value="{$item.userid}" />
                        	<input type="checkbox" id="preportid{$item.reportid}" name="preportid[]" value="{$item.reportid}" onclick="javascript:checkOneItem(this.form, 'pcheckall')"/>
                        </td>
                        <td>{$arrType[$item.type]}</td>
                    {else}
                        <td class="firstChild">{$arrType[$item.type]}</td>
                    {/if}
                    <td>
                    	{$item.userid|ouser}                        
                    </td>
                    <td>
                    	{if $item.type == 1 || $item.type == 4}
                        	<h4>{$item.info.title}</h4>
                            <p class="topLine">{$item.info.short}</p>
                        {elseif $item.type == 2}
                        	{image path=$item.info.path type=2 small=1}
                       	{elseif $item.type == 3}
                        	{$item.info.content|str_emoticon}
                       	{elseif $item.type == 5}
                        	<h4>{$item.info.title}</h4>
                            {if $item.info.short != ""}
                            	<p class="topLine">{$item.info.short}</p>
                            {/if}
                        {elseif $item.type == 7}
                        	<h4>{$item.info.name}</h4>
                            {if $item.img}
                            	{foreach item=sitem from=$item.img}
                                	<p>{image path=$sitem.info.path type=2 small=1}</p>
                                {/foreach}
                            {/if}
                        {elseif $item.type == 8}
                        	<h4>{$item.info.name}</h4>
                            {if $item.info.content != ""}
                            	<p class="topLine">{$item.info.content|str_wordwrap:255}</p>
                            {/if}
                        {/if}
                   	</td>
                    <td> 
                        {if ($item.cate&1<<0) > 0}
                        	<p><img src="{$smarty.const.HOST_STATICS}img/icon/ad-accept.png" alt="" border="0" width="16" height="16" />&nbsp;{$arrReport[1]}</p>
                       	{/if}
                       	{if ($item.cate&1<<1) > 0}
                        	<p><img src="{$smarty.const.HOST_STATICS}img/icon/ad-accept.png" alt="" border="0" width="16" height="16" />&nbsp;{$arrReport[2]}</p>
                       	{/if}
                        {if ($item.cate&1<<2) > 0}
                        	<p><img src="{$smarty.const.HOST_STATICS}img/icon/ad-accept.png" alt="" border="0" width="16" height="16" />&nbsp;{$arrReport[3]}</p>
                      	{/if}
                       	{if ($item.cate&1<<3) > 0}
                        	<p><img src="{$smarty.const.HOST_STATICS}img/icon/ad-accept.png" alt="" border="0" width="16" height="16" />&nbsp;{$arrReport[4]}</p>
                        {/if}
                    </td>
                    <td width="70" align="center">
                        {if $item.statuses == 0}
                            Chờ duyệt
                        {elseif $item.statuses == 1}
                            Nội dung bình thường
                        {elseif $item.statuses == 2}
                            Báo đúng
                        {elseif $item.statuses == 3}
                            Báo sai
                        {else}
                            Bị xóa
                        {/if}
                    </td>
                    <td align="center">{$item.postdate|date_format:"%d/%m/%Y"}<br/>{$item.postdate|date_format:"%H:%M:%S"}</td>
                    <td align="center">
                        {if isset($smarty.session.report)}
                            <a href="{$smarty.const.HOST_BACKEND}index/detail?reportid={$item.reportid}&amp;statuses={$item.statuses}&amp;page={$smarty.get.page}" title="Xem thông tin chi tiết">
                                <img src="{$smarty.const.HOST_STATICS}img/icon/ad-link.png" alt="Detail" border="0" width="16" height="16" />
                            </a>
                        {else}
                            &nbsp;
                        {/if}
                    </td>
                </tr>
            {/foreach}
        {else}
        	<tr><td colspan="7" align="center">Không có dữ liệu</td></tr>
        {/if}
    </tbody>
</table>